package ucu.edu.uy.core;

public class CountryManager {
	
	private CountryDALManager dal = new CountryDALManager();

	public String[] getCountries(int continent) throws Exception{
		
		switch (continent){
		case Continent.AMERICAS:
			 return dal.getCountriesAmericas();
		case Continent.EUROPA:
			 return dal.getCountriesEuropa();
		case Continent.ASIA:
			 return dal.getCountriesAsia();
		default:
			throw new Exception("No existe esta opcion!");
		}
	}
}
